package com.chance.cc.crawler.prod.command.trigger.domain.news.medicinal;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.job.domain.news.medicinal.MedicinalDongtaiCrawlerSchedulerJob;

import static com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger.metaServiceCommand_17;

public class MedicinalDongtaiCrawlerScheduleTrigger {

    public static void main(String[] args) {
        publishTraceScheduleTriggerInfo(MedicinalDongtaiCrawlerSchedulerJob.crawlerScheduler());
    }

    public static void publishTraceScheduleTriggerInfo(CrawlerJob crawlerJob){
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                MedicinalDongtaiCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 0 3 * * ?",
                "医药网行业动态回溯采集任务，每天采集一次,早上7点之前采集完成");
    }

}
